<template>
  <div class="cell" @click="handleCell">
    <div class="left">{{title}}</div>
    <div class="right">
      {{type == 'password' ? '***' : desc}}
      <span class="iconfont iconjiantou1"></span>
    </div>
  </div>
</template>

<script>
export default {
  props: ['title', 'desc', 'type'],
  methods: {
    handleCell(event) {
      this.$emit('click',event)
    }
  }
};
</script>

<style lang="less" scoped>
.cell {
  padding: 20px 10px;
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #ccc;
  > .left {
    flex: 2;
    text-align: center;
  }
  > .right {
    flex: 8;
    color: #666;
    font-size: 14px;
    text-align: right;
  }
}
</style>